package com.mtnz.njk.Mapper;

import com.mtnz.njk.entity.CollectionAskEntity;
import com.mtnz.njk.model.UserCollectionModel;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;
@org.apache.ibatis.annotations.Mapper
public interface CollectionAskMapper extends Mapper<CollectionAskEntity> {

    //查询是否关注
    CollectionAskEntity findCollection(String userId,String askId);

    //修改关注这个问题的状态
    Integer updateStatus(String askId)throws Exception;

    //删除关注
    Integer deleteCollection(String userId,String askId)throws Exception;

    //查询我关注的
    List<UserCollectionModel> findCollectionAsk(String userId)throws Exception;
}
